<?php

namespace app\wap\validate;

use think\Validate;

class Users extends Validate
{
    protected $rule = [
        'username'  =>  'require|max:25',
        'mobile'    =>  'require|number',
        'email'     =>  'require|email',
    ];

    protected $message  =   [
        'username.require' => '名称必须',
        'username.max'     => '名称最多不能超过25个字符',
        'mobile.number'    => '手机必须是数字',
        'mobile.require'   => '手机必填',
        'email'            => '邮箱格式错误',
        'email.require'    => '邮箱必填',
    ];





}